/*
 * @Author: your name
 * @Date: 2021-05-24 14:20:47
 * @LastEditTime: 2021-06-01 11:48:33
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \遵义报名\zunyi\src\router\commonRoutes.js
 */

export const routes = [
    {
        path: "/",//登录页
        alias:"/login",
        name:"login",
        meta:{interceptors:true},
        component: () => import("views/login/login")
    }, 
    {         
        path: "/register",//注册页
        name:"register",
        meta:{interceptors:true},
        component: () => import("views/register/register")
    }, 
    {
        path: "/home",//首页
        name:"home",
        component: () => import("views/home/home")
    }, 
    {
        path: "/signUp",//报名页
        name:"signUp",
        component: () => import("views/signUp/signUp")
    },
    {
        path: "/signUpList",//报名列表页
        name:"signUpList",
        component: () => import("views/signUpList/signUpList")
    },
    {
        path: "/details",//考试详情页
        name:"details",
        props:(route)=>{
            return{
                id:route.query.id
            }
        },
        component: () => import("views/details/details")
    },
    {
        path: "/certificate",//我的证书
        name:"certificate",
        component: () => import("views/certificate/certificate")
    },
    {
        path: "/remove",//我的证书
        name:"remove",
        component: () => import("views/remove/remove")
    },
    {
        path: "/user",//我的信息
        name:"user",
        component: () => import("views/user/user")
    },
    // 必须把这个路由放在最后面
    {
        path: "*",
        name:"404",
        component: () => import("views/404/404")
    }
]
